Ext.define('carManage.view.insuranceInfo.EditOrAddForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.editOrAddForm',
    width: '100%',
    height: '100%',
    bodyStyle: 'padding: 4px',
    border: false,
    autoscroll: true,
    frame: false,
    autoScroll: true,
    fieldDefaults: {
        labelWidth: 130
    },
    items: [{
            xtype: 'container',
            anchor: '100%',
            layout: 'hbox',
            items: [{
                    xtype: 'container',
                    flex: 1,
                    layout: 'anchor',
                    items: [
                        {
                            name: 'id',
                            xtype: 'hidden'
                        }, {
                            xtype: 'combo',
                            fieldLabel: '车牌号码',
                            name: 'car_code',
                            displayField: 'name',
                            valueField: 'name',
                            emptyText: '车牌号码',
                            anchor: '95%',
                            typeAhead: true,
                            queryParam: 'name',
                            autoSelect: false,
                            triggerAction: 'all',
                            allowBlank: false,
                            store: 'CarList_store'
                        }, {
                            xtype: 'datefield',
                            fieldLabel: '交强险起保时间',
                            emptyText: '交强险起保时间',
                            altFormats: 'Y-m-d||Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            name: 'insurance_jq_stime',
                            anchor: '95%'
                        }, {
                            xtype: 'textfield',
                            fieldLabel: '交强险保单号',
                            name: 'insurance_jq_warranty',
                            emptyText: '交强险保单号',
                            anchor: '95%'
                        }, {
                            xtype: 'textfield',
                            fieldLabel: '车船使用税',
                            name: 'vesselusetax',
                            emptyText: '车船使用税',
                            anchor: '95%'
                        }, {
                            xtype: 'datefield',
                            fieldLabel: '商业险起保时间',
                            emptyText: '商业险起保时间',
                            altFormats: 'Y-m-d||Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            name: 'insurance_commercial_stime',
                            anchor: '95%'
                        }, {
                            xtype: 'textfield',
                            fieldLabel: '商业险保单',
                            name: 'policy',
                            emptyText: '商业险保单',
                            anchor: '95%'
                        }
                    ]
                }, {
                    xtype: 'container',
                    flex: 1,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: 'textfield',
                            fieldLabel: '承保公司',
                            name: 'insurer',
                            emptyText: '承保公司',
                            anchor: '95%'
                        }, {
                            xtype: 'datefield',
                            fieldLabel: '交强险截止时间',
                            emptyText: '交强险截止时间',
                            altFormats: 'Y-m-d||Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            name: 'insurance_jq_etime',
                            anchor: '95%'
                        }, {
                            xtype: 'textfield',
                            fieldLabel: '交强险保费',
                            name: 'insurance_jq_premium',
                            emptyText: '交强险保费',
                            anchor: '95%'
                        }, {
                            xtype: 'textfield',
                            fieldLabel: '商业险保费',
                            name: 'premium',
                            emptyText: '商业险保费',
                            anchor: '95%'
                        }, {
                            xtype: 'datefield',
                            fieldLabel: '商业险截止时间',
                            emptyText: '商业险截止时间',
                            altFormats: 'Y-m-d||Y-m-d',
                            format: 'Y-m-d',
                            dateFormat: 'Y-m-d',
                            name: 'insurance_commercial_etime',
                            anchor: '95%'
                        }
                    ]
                }]
        }],
    initComponent: function() {
        this.callParent(arguments);
    }
});